package main

import (
	"fmt"
)

func generateTheString(n int) string {
	res := make([]byte, 0)
	if n%2 == 0 {
		res = append(res, 'a')
		for i := 1; i < n; i++ {
			res = append(res, 'b')
		}
	} else {
		for i := 0; i < n; i++ {
			res = append(res, 'a')
		}
	}
	/*
		if n%2 == 1 {
			return strings.Repeat("a", n)
		}
		return strings.Repeat("a", n-1) + "b"
	*/
	return string(res)
}

func main() {
	fmt.Println(generateTheString(1))
	fmt.Println(generateTheString(2))
	fmt.Println(generateTheString(3))
	fmt.Println(generateTheString(4))
}
